# !/usr/bin/env python
# -*-coding:utf-8 -*-

"""
# File       : work_face.py
# Time       ：2021/8/31 17:41
# Author     ：王洪磊
# Email      ： wang_hl007@163.com
# Description：底图工作面类
"""


class WorkFace(object):
    def __init__(self, name, parent, ax):
        self.name = name
        self.parent = parent
        self.points = []
        self.lines = []
        self.arcs = []
        self.ms_events = []
        self.senors = []
        self.roadways = []
        self.ax = ax

        self.color = None
        self.fill = None

    def set_color(self, color):
        self.color = color

    def redraw(self):
        # TODO 重新绘制直线和
        for line in self.lines:
            self.ax.plot(line)



